<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String account = request.getParameter("account");
	if (account == null) account = "";
	String message = request.getParameter("message");
	if (message == null) message = "";
	String msg = (String)request.getAttribute("msg");
	if (msg == null) msg = "";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link href="css/style.css" rel="stylesheet" type="text/css">
		<title>投稿</title>
	</head>
	<body>
		<p style="color: red"><%= msg %></p>
		<form action="RegistServlet">
			<div class="opguide">名前を入力してください</div>
			<div>
				<input type="text" name="account" id="account" />
			</div>
			<div class="opguide">メッセージを編集してください</div>
			<div>
				<textarea name="message" id="message"><%= message %></textarea>
			</div>
			<div class="opguide">パスワードを入力してください</div>
			<div>
				<input type="password" name="password" id="password" />
			</div>
			<p>
				<input type="submit" value="送信" />
			</p>
		</form>
	</body>
</html>